import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
import autoImport from 'sveltekit-autoimport';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	// Consult https://github.com/sveltejs/svelte-preprocess
	// for more information about preprocessors
	extensions: ['.svelte', '.md'],
	preprocess: [
		autoImport({
			components: [{ name: './src/lib', flat: true }],
			include: ['**/*.(svelte|md)']
		}),

		preprocess()
	],


	kit: {
		prerender: {
			// concurrency: 4,
			// default: true
		},
		adapter: adapter({
			pages: "dist",
			assets: "dist"
		}),

	}
};

export default config;
